home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 January / Macworld (1998-01).dmg / Shareware World / Utilities / Data & Time Management / ProMaker-Utils-1.0.2 / Getting Started with ProMaker < prev    next >
Text File  |  1997-10-27  |  9KB  |  177 lines

  1. ProMaker Utils™ 
  2. ProMaker Utils is copyright 1997 of Troi Automatisering. All rights reserved.
  3.  
  4. Note: text added or changed since the previous version is marked dark blue.
  5.  
  6. Getting started
  7.  
  8. How can I use an International FileMaker Pro version?
  9. ProMaker now detects which version of Filemaker is running. So you can switch more easily between different languages of Filemaker. When importing from Print2Pict files you have to specify the correct language version. Select your preferred International FileMaker version like this: 
  10.          • Choose "Preferences" from the Edit menu.
  11.          • Click on the "Set Version" button. 
  12.          • Locate your FileMaker in the standard open dialog that follows.
  13.  
  14. Note 1: 
  15. The unregistered version will alert you that Preferences can not be saved until you register. However the selected International FileMaker will be remembered the first 30 days of use. 
  16. Note 2: 
  17. We are not in a position to test all International versions. We have at this moment tested British, Dutch, Italian, and US versions.
  18.  
  19.  
  20. How do I paste a Script into FileMaker?
  21. - Open FileMaker Pro.
  22. - Open ScriptMaker and the script you want to paste the steps in. This may be an empty script or an existing one. 
  23. - If you want to add to an existing script: click on the script step under which you want ProMaker to enter the extra steps.
  24. - Use ProMaker Utils to open a TEXT file with the script-steps in it (some sample text files are included).  
  25. - Start the Entering of a complete script by selecting "Enter All in ScriptMaker" from the Edit menu. You can also press command-E.
  26.  
  27. ProMaker will now start pasting the steps into the script. When it is done a small sound is produced.
  28.  
  29. Note 1: 
  30. You can stop the process by pressing the CONTROL key.
  31. Note 2: 
  32. If you want to paste only a portion of the opened TEXT file do the following:
  33. - Make a selection in the TEXT file.
  34. - Select "Enter Selection in ScriptMaker" from the Edit menu. Or press command-H.
  35.  
  36.  
  37. Most Script Options are set
  38. ProMaker pastes most of the options for the script steps. Below is a listing of each type of option and if they are handled:
  39.  
  40. Option Type                                Handling                  Example step
  41. Checkbox option               all handled                Go to Field [Select]
  42. Radio button option              all handled                Allow User Abort [On]
  43. "Specify Calculation" option     all handled (See below)    If[“number = 1”]
  44. Pop Up options                mostly handled (See below) Go to Record/Request/P.[First]
  45. "Specify Field" options       not set                    Go to Field [“field”]
  46. Pause/Resume Script option       not set                    Pause/Resume Script
  47. Replace options               not set                    Replace
  48.  
  49.  
  50. How to specify the Options
  51. You can use 4 sets of balancing begin- and end-quote charactes for options:
  52.             Open Quote              Close Quote  
  53.                 “           ”     
  54.                 "           "
  55.                 '           '
  56.                 {           } 
  57.    
  58. With Promaker you can follow the quoting conventions for options used by FileMaker. So  scriptstep options can be between curly quotes like this:
  59.      Set Field [“text field”, “If(test > 1 , "foo" , "bar")”]
  60.  
  61. As an extra possibility you can use the more easy to type { and }, like this:
  62.      Set Field [{text field}, { If(test > 1 , "A" , "B")" } ]
  63.  
  64. You can also use plain double quotes if no other quotes are present, like this:
  65.      Set Field ["text field", "If(test > 1 , 3 , 4)"]
  66.  
  67. It is quite complex to find the correct parameter with plain quotes here:
  68.      Set Field ["test field", ", test" & If(test > 1 , ", " , ",") "]
  69.  
  70. ProMaker always looks for the first balancing quote character from the right. So this would result in ") " as 2nd option in the last example. As a general rule always use a quote char that is not present in the option itself.
  71.  
  72.  
  73. Pasting of "Specify Calculation" Options
  74. Scriptsteps: If[], Exit Loop If[], Specify Field[], Paste Result[].
  75.  
  76. When when you are pasting scripts which use the "Specify Calculation" dialog it is possible that you are pasting a calculation that does not work. Examples:
  77.  
  78. Calculation                  Problem
  79. Middle(textField , 1)        missing parameter
  80. Invoice::Date                the Invoice relation is not present in this file
  81. PattrenCount(text, "test")   typing error
  82. Left("test , 3)              missing close quote
  83.  
  84. ProMaker doesn't know if the calculation will be accepted by FileMaker, so this is what ProMaker does:
  85.   - ProMaker tries to paste the original calculation.
  86.   - ProMaker checks if FileMaker accepts this calculation.
  87.   - If FileMaker can't paste the calculation, ProMaker will get rid of the alert and paste a modified calculation that will always work.
  88.  
  89.  
  90. Modified Calculations
  91. When ProMaker has to modify the calculation it will do the following:
  92.   - Replace all double quote chars (") with single quotes (').
  93.   - Put the calculation between the following: 
  94.      Length("••• <original calculation> ").
  95. This way the calculation has become a text string and will always be accepted by FileMaker. Examples:
  96.  
  97. Calculation                  Will become
  98. Middle(textField , 1)           Length("•••  Middle(textField , 1)  ") 
  99. Invoice::Date                Length("•••  Invoice::Date   ")
  100. PattrenCount(text, "test")   Length("•••  PattrenCount(text, 'test')  ")
  101. Left("test , 3)              Length("•••  Left('test , 3)      ")
  102.  
  103. So if you have pasted calculations with ProMaker, look trough them to fix possible problems with them. The ••• will make finding them easier in the total script. It's not perfect, but hey, it's better than nothing.
  104.  
  105.  
  106. Pasting of Pop Up menu Options
  107. Scriptsteps: Go to Record/Request/Page [], Go to Portal Row [], Scroll Window [], Toggle Window [], Toggle Status Area [], Toggle Text Ruler [], Set Zoom Level [], View As [].
  108.  
  109. Most Pop Up options are now set. Only the script steps with variable pop-ups (Goto Layout and Perform Script []) are not set at all. Below a list is given describing for each relevant step what values are set.
  110.  
  111. Step                    Pop Up values Set                Pop Up values NOT Set
  112. Perform Script          -                                all not set
  113. Go To Layout            -                                all not set
  114. Go to Rec./Request/Page First/Last/Next/Previous         By Number/By Field Value
  115. Go to Portal Row                    First/Last/Next/Previous         By Value/By Field
  116. Scroll Window           Home/End/PageUp/PageDown/To Sel. -
  117. Toggle Window           Zoom/Unzoom/Maximize/Hide        -
  118. Toggle Status Area      Show/Hide/Toggle                 -
  119. Toggle Text Ruler       Show/Hide/Toggle                 -
  120. Set Zoom Level          25%/50%/100%/150%/200%/300%
  121.                                                                                              400%/Zoom In/Zoom Out            -
  122. View As                 View as Form/View as List/Toggle -
  123.  
  124. Note 1:  
  125. If the pop up menu does not have enough room to pop up, it will scroll before pasting, which will give wrong results. Always make sure that there is enough room below the dialog box to paste.
  126.  
  127. Note 2: 
  128. For this pop up pasting to work the CursorDevice Manager needs to be present. This is usually the case with system 7.5 and higher. In the startup flash box it is indicated if the CursorDevice Manager is present.
  129.  
  130. Note 3: 
  131. On some machines the pop up menu will not pop up reliably all the time. This causes no harm. At this moment we know no solution to this.
  132.  
  133.  
  134. How can I make a script more readable?
  135. There is a flexible comment structure:
  136. - You may add empty lines
  137. - You may indent the steps 
  138. - Anything after // is ignored. 
  139.  
  140.  
  141. How do I get a Script from FileMaker?
  142. At the moment ProMaker Utils can not get a script out of FileMaker. This can be done by the excellent Text Capture FKEY from James W. Walker.
  143. You can get it from our site or at the following source: <http://hyperarchive.lcs.mit.edu/HyperArchive/Archive/text/text-capture-23-fkey.hqx>
  144.  
  145. If you have installed the Text Capture FKEY proceed as follows:
  146. - Create a new file in ProMaker (Select "New" from the File menu or press command-N).
  147. - Open FileMaker Pro.
  148. - Open ScriptMaker and the script you want to get the steps from.
  149. - activate the FKEY by pressing SHIFT-COMMAND-6 (or another number if you have put it under different number).
  150. - Drag a rectangle around the steps of the script.
  151. - Switch to ProMaker and Select Paste from the Edit menu (command-V).
  152.  
  153. How can you Edit and Select Text?
  154.  
  155. ProMaker behaves like FileMaker in editing:
  156.  
  157. Wanted action:                                    Press Keys:
  158. Move insertion point to start of line             Command Left
  159. Move insertion point to start of text             Command Up  (or HOME)
  160. Move insertion point to end of line               Command Right
  161. Move insertion point to end of text               Command Down (or END)
  162.  
  163. Extend selection to start of line                 Shift Command Left
  164. Extend selection to start of text                 Shift Command Up
  165. Extend selection to end of line                   Shift Command Right
  166. Extend selection to end of text                   Shift Command Down 
  167. Select a word                                     Double-click
  168.  
  169. ProMaker now can UNDO modifications of text.
  170.  
  171. Known Problems:
  172.  
  173. - There is a known problem with Faxmenu from Fax StF 3.2 on 68k machines., where the menu will not display properly.
  174.  
  175. - The step "Goto Preference" is changed to "Goto Application Preferences" in FMP 4.0. To make ProMaker recognize this step please change the source accordingly.
  176.  
  177.